import req from '../utils/http'

//  获得推荐歌单
export function getRecommendThePlaylist(num = 6) {
    return req.get(`/music-api/personalized?limit=${num}`)
}

//  获得最新歌单
export function getNewMusic(num = 10) {
    return req.get(`/music-api/personalized/newsong?limit=${num}`)
}

//  获取歌曲详情
export function getDetailSong(id) {
    return req.get(`/music-api/song/detail?ids=${id}`)
}

//获取热歌榜
export function getHotSongList() {
    return req.get(`/music-api/playlist/detail?id=3778678`)
}

// 获取歌词
export function getLyrics (id) {
    return req.get(`/music-api/lyric?id=${id}`)
}